﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="CatalogosCosea.aspx.cs" Inherits="CatalogosCosea" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <form id="empleado" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
     <asp:HiddenField ID="HiddenField1" runat="server" />
     <asp:HiddenField ID="HiddenField2" runat="server" />

        <ul class="tabs">
            <li><a href="#tab1">Oficinas</a></li>
            <li><a href="#tab2">Puestos</a></li>
            <li><a href="#tab3">Departamentos</a></li>
            <li><a href="#tab4">Empleados</a></li>
            <li><a href="#tab5">Vendedores</a></li>           
            <li><a href="#tab6">Usuarios</a></li>           
        </ul>

     <div class="tab_container">
         <div id="tab1" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="OficinasId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="OficinasId" 
                             HeaderText=" No. "
                             SortExpression="OficinasId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="NombreOficina" 
                             HeaderText="Oficina"
                             SortExpression="NombreOficina" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Gerente" 
                             HeaderText=" Gerente" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoOficina" runat="server" 
                            onclick="lnkNuevoOficina_Click">Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminarOficina" runat="server" 
                            onclick="lnkEliminarOficina_Click">Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditar" runat="server" onclick="lnkEditar_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre Oficina:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tNombreOficina" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Domicilio:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tDomicilio" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Colonia</td>
                              <td align="left">
                                  <asp:TextBox ID="tColonia" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Cp:</label></td>
                              <td align="left" >
                                  <asp:TextBox ID="tCp" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Telefono 1:</td>
                              <td align="left">
                                  <asp:TextBox ID="tTelefono1" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg" ReadOnly="True">Teléfono 2:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tTelefono2" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Gerente:</td>
                              <td align="left">
                                  <asp:TextBox ID="tGerente" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Email:</label></td>
                              <td colspan="1" align="left">
                                  <asp:TextBox ID="tEmail" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right"><label for="curl">Comentarios:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tComentarios" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="curl">Ciudad:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddCiudad" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Municipio:</label></td>
                              <td align="left">
                                  <asp:DropDownList ID="ddMunicipio" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>

                            <tr class="td2">
                              <td align="right"><label for="curl">Estado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEstado" runat="server">
                                  </asp:DropDownList>
                                </td>                            
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarOficina" runat="server" 
                                        onclick="lnkGuardarOficina_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab2" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos2" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="PuestosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos2_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos2_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="PuestosId" 
                             HeaderText=" No. "
                             SortExpression="PuestoId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Descripcion"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoPuesto" runat="server" 
                            onclick="lnkNuevoPuesto_Click">Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarPuesto" runat="server" 
                            onclick="lnkEliminarPuesto_Click">Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarPuesto" runat="server" 
                            onclick="lnkEditarPuesto_Click">Editar</asp:LinkButton></td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tNombrePuesto" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarPuesto" runat="server" 
                                        onclick="lnkGuardarPuesto_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab3" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos3" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="DepartamentosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos3_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos3_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="DepartamentosId" 
                             HeaderText=" No. "
                             SortExpression="DepartamentosId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Departamento"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                     
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoDeptos" runat="server" 
                            onclick="lnkNuevoDeptos_Click">Nuevo</asp:LinkButton>  |
                     <asp:LinkButton ID="lnkEliminarDeptos" runat="server" 
                            onclick="lnkEliminarDeptos_Click">Eliminar</asp:LinkButton> | 
                        <asp:LinkButton ID="lnkEditarDeptos" runat="server" 
                            onclick="lnkEditarDeptos_Click">Editar</asp:LinkButton>
                     </td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tNombreDepartamento" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarDeptos" runat="server" 
                                        onclick="lnkGuardarDeptos_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>   
         </div>
     </div>

     <div class="tab_container">
         <div id="tab4" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos4" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="EmpleadosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos4_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos4_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="EmpleadosId" 
                             HeaderText=" No. "
                             SortExpression="EmpleadosId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="CodigoEmpleado" 
                             HeaderText="Codigo"
                             SortExpression="CodigoEmpleado" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Nombre"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Paterno" 
                             HeaderText="Paterno"
                             SortExpression="Paterno" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Materno" 
                             HeaderText="Materno"
                             SortExpression="Materno" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                       
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoEmpleado" runat="server" 
                            onclick="lnkNuevoEmpleado_Click">Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarEmpleado" runat="server" 
                            onclick="lnkEliminarEmpleado_Click">Eliminar</asp:LinkButton> | 
                    <asp:LinkButton ID="lnkEditarEmpleado" runat="server" 
                            onclick="lnkEditarEmpleado_Click">Editar</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Codigo Empleado:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tCodigoEmpleado" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tNombreEmpleado" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Paterno:</td>
                              <td align="left">
                                  <asp:TextBox ID="tPaterno" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Materno:</label></td>
                              <td align="left" >
                                  <asp:TextBox ID="tMaterno" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Telfono Oficina:</td>
                              <td align="left">
                                  <asp:TextBox ID="tTelefonoOficinaEmpleado" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg" ReadOnly="True">Extensión:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tExtension" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Celular:</td>
                              <td align="left">
                                  <asp:TextBox ID="tCelularEmpleado" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Email:</label></td>
                              <td colspan="1" align="left">
                                  <asp:TextBox ID="tEmailEmpleado" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right"><label for="curl">Comentarios:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tComentariosEmpleado" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="curl">Puestos:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddPuestos" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Departamentos:</label></td>
                              <td align="left">
                                  <asp:DropDownList ID="ddDepartamentos" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarEmpleado" runat="server" 
                                        onclick="lnkGuardarEmpleado_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel> 
         </div>
     </div>

     <div class="tab_container">
         <div id="tab5" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel5" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos5" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="VendedoresId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos5_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos5_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="VendedoresId" 
                             HeaderText=" No. "
                             SortExpression="VendedoresId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nickname" 
                             HeaderText="Nombre Corto"
                             SortExpression="NickName" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Profesion" 
                             HeaderText="Profesión"
                             SortExpression="Profesion" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoVendedor" runat="server" 
                            onclick="lnkNuevoVendedor_Click">Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarVendedor" runat="server" 
                            onclick="lnkEliminarVendedor_Click">Eliminar</asp:LinkButton> |
                    <asp:LinkButton ID="lnkEditarVendedor" runat="server" 
                            onclick="lnkEditarVendedor_Click">Editar</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tNickName" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Profesión:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tProfesionVendedor" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Comentarios:</td>
                              <td align="left">
                                  <asp:TextBox ID="tComentariosVendedor" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Empleado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEmpleado" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Oficina:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddOficina" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarVendedor" runat="server" 
                                        onclick="lnkGuardarVendedor_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab6" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>
                    <asp:GridView ID="grdDatos6" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="UsuariosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos6_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos6_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="UsuariosId" 
                             HeaderText=" No. "
                             SortExpression="UsuariosId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Usuario"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                     
                    </td>
                </tr>
                <tr>                    
                    <td> <asp:LinkButton ID="lnkNuevoUsuario" runat="server" 
                            onclick="lnkNuevoUsuario_Click">Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarUsuario" runat="server" 
                            onclick="lnkEliminarUsuario_Click">Eliminar</asp:LinkButton> | 
                    <asp:LinkButton ID="lnkEditarUsuario" runat="server" 
                            onclick="lnkEditarUsuario_Click">Editar</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Usuario:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="tNOmbreUsuario" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Password:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="tPassword" runat="server" ReadOnly="True" TextMode="Password"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Empleado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEmpleadoUsuario" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarUsuario" runat="server" 
                                        onclick="lnkGuardarUsuario_Click">Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>   
         </div>
     </div>


     </form>
</asp:Content>

